package com.qust.endecryptionmanager.mapper;

import com.qust.endecryptionmanager.pojo.AlgorithmInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AlgorithmMapper {
    /**
     * 上传算法信息
     * @param algorithmInfo
     */
    void uploadInfo(AlgorithmInfo algorithmInfo);

    int selectId(@Param("name") String name);

    List<AlgorithmInfo> listInfo();

    void delete(@Param("name") String name);
}
